# -*- coding: utf-8 -*-
# @Time    : 2024/1/23  18:51
# @Author  : zhanghao
# @FileName: MatchRule.py
# @Software: PyCharm
"""
    Description: 匹配规则对象
"""
from domain.match_content import MatchContent


class MatchRule:

    type = ''
    keyword = ''
    ret_file_name = ''
    classify_id = ''
    grab_content: MatchContent

    def __init__(self, type, keyword, ret_file_name, classify_id, grab_content):
        self.type = type
        self.keyword = keyword
        self.ret_file_name = ret_file_name
        self.classify_id = classify_id
        self.grab_content = MatchContent(grab_content['fields'], grab_content['words'])

